package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.TransferAccountsZfbDetailAddDTO;
import org.jsola.hr.dto.TransferAccountsZfbDetailUpdateDTO;
import org.jsola.hr.query.TransferAccountsZfbDetailQuery;
import org.jsola.hr.vo.TransferAccountsZfbDetailListVO;
import org.jsola.hr.vo.TransferAccountsZfbDetailVO;

import java.util.List;

/**
 * 转账明细(支付宝)
 *
 * @author zhr
 */
@Api(tags = "hr-转账明细(支付宝)")
public interface ITransferAccountsZfbDetailControllerAPI {

    /**
     * 新增转账明细(支付宝)
     * @param transferAccountsZfbDetailAddDTO 转账明细(支付宝)新增实体
     * @return 转账明细(支付宝)展示对象
     */
    @ApiOperation(value = "新增转账明细(支付宝)")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsZfbDetailAddDTO", dataType = "TransferAccountsZfbDetailAddDTO", value = "新增转账明细(支付宝)", paramType = "body")
    })
    Result<TransferAccountsZfbDetailVO> save(TransferAccountsZfbDetailAddDTO transferAccountsZfbDetailAddDTO);


    /**
     * 修改转账明细(支付宝)
     * @param transferAccountsZfbDetailUpdateDTO 转账明细(支付宝)
     * @return 更新数量
     */
    @ApiOperation(value = "修改转账明细(支付宝)")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsZfbDetailUpdateDTO", dataType = "TransferAccountsZfbDetailUpdateDTO", value = "修改转账明细(支付宝)", paramType = "body")
    })
    Result<Integer> update(TransferAccountsZfbDetailUpdateDTO transferAccountsZfbDetailUpdateDTO);




    /**
     * 删除单个转账明细(支付宝)，彻底删除
     * @param transferAccountsZfbDetailId 转账明细(支付宝)id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个转账明细(支付宝)，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsZfbDetailId", dataType = "String", value = "转账明细(支付宝)id", paramType = "path")
    })
    Result<Integer> delete(String transferAccountsZfbDetailId);


    /**
     * 批量删除转账明细(支付宝)，彻底删除
     * @param transferAccountsZfbDetailIds 转账明细(支付宝)id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除转账明细(支付宝)，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsZfbDetailIds", dataType = "String[]", value = "转账明细(支付宝)id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] transferAccountsZfbDetailIds);


    /**
     * 根据转账明细(支付宝)id查询转账明细(支付宝)详情
     * @param transferAccountsZfbDetailId 转账明细(支付宝)id
     * @return 转账明细(支付宝)详情
     */
    @ApiOperation(value="根据转账明细(支付宝)id查询转账明细(支付宝)详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsZfbDetailId", dataType = "String", value = "转账明细(支付宝)id", paramType = "path")
    })
    Result<TransferAccountsZfbDetailVO> findById(String transferAccountsZfbDetailId);


    /**
     * 查询转账明细(支付宝)
     * @param transferAccountsZfbDetailQuery 转账明细(支付宝)查询参数
     * @return page
     */
    @ApiOperation(value="查询转账明细(支付宝)")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsZfbDetailQuery", dataType = "TransferAccountsZfbDetailQuery", value = "转账明细(支付宝)查询参数", paramType = "query")
    })
    Result<List<TransferAccountsZfbDetailListVO>> listAll(TransferAccountsZfbDetailQuery transferAccountsZfbDetailQuery);


     /**
     * 分页查询转账明细(支付宝)
     * @param transferAccountsZfbDetailQuery 转账明细(支付宝)查询参数
     * @return page
     */
    @ApiOperation(value="分页查询转账明细(支付宝)")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsZfbDetailQuery", dataType = "TransferAccountsZfbDetailQuery", value = "转账明细(支付宝)查询参数", paramType = "query")
    })
    Result<Page<TransferAccountsZfbDetailListVO>> page(TransferAccountsZfbDetailQuery transferAccountsZfbDetailQuery);


}

